fix some coding bug.