Fixed slowness bug and greedy bug on greedy sweep