Fix compile error with changed method names.