Fixes error passing in JSON output