fix typo in device API