fix localhost problem