Fix potential crasher.