adjust history position