fix two compilation error