Fixed host problem when used remotely