fix bug in finding category name for task index