fixed a complie issue under gcc version 4.1.2