Fix greedy command