try to fix modal bug