Fixed bug with hidden categories