I have an issue where my C# code wasn't able to change a hex value in the 13th position.

This is C# my code:
private void button1_Click(object sender, EventArgs e)
{
OpenFileDialog openFileDialog = new OpenFileDialog();
if (openFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
string fileName = openFileDialog.FileName;
textBox1.Text = fileName;
}
}
private void button2_Click(object sender, EventArgs e)
{
string fileName = textBox1.Text;
using (var stream = new FileStream(fileName, FileMode.Open, FileAccess.ReadWrite))
{
stream.Position = 13;
stream.WriteByte(0x00);
}
}