Fixed the spawning of homeworks

It now runs on the same timer as the rest of the updates instead of on a
separate one.