fixes #7 transition of task states