Fixed reset button and pause button bug