Fix the compilation error due to interface change.