Fixes color fixation in state machine