fix redirect error after sign_in