Fixed "save new habit" bug.