fix a few errors in rel="canonical" code