Update target API and fix typo