TypeError: Expected "category" to be a string