Fix representation bug that caused only JSON output