Try and fix a strange crash that can't happen but is happening anyway.