fix bugs on jquery ui