fix a crasher