fixed missing localhost bug