fix modal quickly hide