Fixed bug in computing C matrix