fix a bug while undoing
Release 0.1.17