Fixing GTK crash when scanning hosts.