fix redirect when there are no backends