Fixed duration bug and opening a class after editing bug