Bugfix: hostname was always undefined