Fixed SetCanon

The flag was being set in the wrong variable, but it's fixed now.
Merge pull request #1 from Ratfink/master

SetCanon method fixed