Fixed by making it lazy-greedy.