fix a code error