fix error when loading category name for non-existent id
expand tabs into spaces