fix some compile issue