fixed pausing issue