fixed bug in canonical overlap