fix bugs, ym fault