Fixes redirect on success