fix task persisting on edit

closes #46