fix using redirect from modal