fixed the wrong pseudocounts addition (thanks to Daniel)