correct the modal box
correct a bug when the time is extended to unlimited