Fix a rare crash