Fix a potential crasher.