fixed #6 undo the part of the last change