Fix adding new tasks