Fix bugs in homogeneous LC inner product