fix some operation bug.