small fix and update of state