shot in the dark to fix a crash