Fix API mistakes.