bugfixes for primary transition log likelihood contribution