Fixing API access to return object instead of array containing object.