Category ID null fix