Fix login redirect to result bug