Avoid loop if remaining time is negative