Fixes for models (JSON output).