Fix typo in function call name
Fix return value in utility function to return custom keys