Simpler fix for getting proper dictionary of items passed to api