fix params typo in device api