fixed a code error