Remove unneeded state change.