fix on pause bug