bugfix: modify calcuration of likelihood max
Merge commit '33ec247cad1483e8b5c78aa643c7d1ee836d74cb'