Fix a panic condition