Fix the inactive js issue