Fix js Bug