fixed a code warning