fix bug undo location