fixed expectiMax
merged