fix a bug in indy