fix modal destroy