Some little bugfixes

- Avoid fatal error on unknown category
- Fix permission types 20 and 21