fixed bug in summary command

Had Y and Z reversed in summary tables.