Fixed bugs loading tasks from the persistent store