Fix weird js issue