handle infinite redirections like AIME