fixed undo levels limitation