issue #1686:fix some compiling error