fix bug of localhost