Rename argument to avoid bug in Safari 5.1.
Argument 'state' in 'set state' cause Safari 5.1 to throw erroneous error

Fixes #1535