Fixed the annoying safe mode crashing.