remove redirect loop