fix modal release bug