Fix potential avenue for crashing.