Fix idetools --def crash.