Fixed: added missing return value