Fix line number issue on pause