fix localhost selection