trying to fix modal bug