Fix mislabeled variable crash