fixed double pause bug