Fixed bug when event occurs during a break