Fixed another bug in new tab mechanism