fix most compileation error