bugfix (do not export invisible categories)