Prevents a crash