Fixed wrong greedy call