If Sergey's post did the trick, could you please return to the thread and close things out by using the Accept as Solution button on his post for us? This gives him credit for the help and it lets other Members know it worked. If you did something different, consider posting that and then mark it after you post using the button.
Ah, I think I may have found the other issue, I think you may have done a SET instead of LET when you created the variable, which is I am going to post the Help links on those rather than try to explain things, but I think that could be the issue if Sergey's post did not work.
It is appreciated if you can be sure to close out your posts.
To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question. I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.