Fixed SetCanon

The flag was being set in the wrong variable, but it's fixed now.