moved SID fix into _setCanonicalHeader