Fixed: Can't use an undefined value as a HASH reference