fix some bugs in ch4