bugfix: modify calcuration of likelihood max