fixed js problem