fixed bug in undolist#get_undolist