Scheduler: Fix a nasty scheduler caching bug which makes new tasks not execute