Fix categories spec code.