fix modal bug