fix some compile bug