Fix: Hopefully fixes a critical error where "host" may be undefined.