Fix bug where habits were not being deleted correctly
fix broken save functionality due to changes from last commit