fix a problem of matrix operation between a 4x1 matrix and a scalar