fix some coding error