I'd add two caveats to your request for code. Please format your code readably, and please post the smallest amount of code that demonstrates the problem. It is far less work to read 20 lines than 200. I have found, when doing this, that I have found precisely where the problem is, found the solution in the docs, and been able to save pleas to the community for when they are needed. I do leave
in, though - everyone who leaves it out seems to get advised to put it in, so I do.