Fix wrong typing in tags and categories