Updated `is_canonical` in constructor.

Now the `is_canonical` takes 2 parameters in constructor.
Builds should pass now.