Solved some issues in HostFilter