What is the exact nature of problem you are experiencing? I can't see any problem with the code snippet you posted.