Fixed bug where when you finish all tasks and then add another one it crashes the app