fix jqueryui called twice