Fix crasher, when used as input.