Fixed an annoying crash.