fix for category names not displaying correctly in certain situations