Fix the error if category is not present.