fixed generation of the list of cartridges in the model