Fixed jQuery UI click bug