fixing hosts check