Fix compil errors