try fix double redirect on success and fail