Fixed resume logic.