imc: fix order of operations in coefficients read