Fix categories failing when categories with id 1 and 2 exist