fixes a js issue