fix jquery error on button