Can't figure out what is wrong with history skip