Prevent infinit loop