Fixed some bugs in LHCGWCONV algorithm.