Fix incorrect pinned mismatch errors. https://redmine.stoutner.com/issues/591