Fixed bug in greedy max...