remove useless previousState attribute