fixes a bug with category destry