fix bugs: id must be int