Fix of potential crash.