fix compile problems