fixes a segfault in utlSmartCat()