Fixed double push undo history bug