Fix open new tab issue