In reply to __viking:
The sample code works for me, so you will have to post a complete example that shows your issue.