Fix auth redirect