Fixes greedy scheduling