TC: fixed JS undef tab reload bug