Fixed a small definition issues with the state attribute