Avoid infinite loop on registration attempt