Update deprecated state for _state

Update deprecated `state`for `_state`. In latest master `get('state')` is deprecated for `get('_state')`.