Fix hiding of categories when only default category is visible