Prevents potential crash.