fixed wrong value for assigned state ID