fix bug in id