fix modal redirect