Fix potential crashers.