fix silly js bug