Fixing recursive time scheduler