fix modal loading