Fixed bug in Habits grid