Fix api changes.