Do not loop forever on ie8