Better fix for admin redirect loop