Fixed bug in Scenario canonicalization.