fix localhost reference