The code you posted should work as expected, and just to be sure I ran it and it worked as expected.