Bugfix in evaluateGMM method