fix typo and make sure id is plain string