added redirection detection, fixed iframe children gets undetected bug.