utils: removed the number of references from attribute calculation
models: corrected a couple of errors