fix update compilation errors