Fix issue with saving todo task