Fix some compile bug