Make fallback category id more roboust