api: fix minor issues.