fix complie bugs