Fixes to jquery-ui error