Bugfix in adaptGMM method