fix output category for $type==post