minor fixes for canonical output