fix typo and extra param in device api