FIX: Safety checks for categories index