fixed example compile issue