SGreedy fix