fixed bug in ido mode init