move history bug fixing