fix the state for message