Prevent endless loop