fix for js issue