fix for raw(json) api view