fix error with unknown method "state"