closed #2393:fix a compiling error