Fix a random crash