Fixing hidden categories bug