fixes scheduler