Yeah that looks right.
I tested with the code on this page:
Are you doing something different?
– Dale