fix greedy option