fixed the pausing