protect infinite loop and clean more tabs