Fix some bugs for FDM_QWI method.