Fixing modal redirect