http 401 redirect bug