I just tried your code and it works so I don't see what the problem is. Are you getting some kind of error message?