fix some bug.