fixed js issue