You waited 7 months to reply, so I assumed everything was ok.
But first you replied saying it doesn't work, and then a month later your post reads as if it does work but not the way you want.
You'll need to be a bit more descriptive if you need help. I don't know what your code looks like 9 months later, and what's happening that's different than you want to happen