Avoid infinite scheduling