localhost bug fix