FIX: The constraint on parent categories wasn't working properly.