Fixed bug with wrong category in edit habit popup.