First of all cut it off completely, because you got used to eating stuff at night. Cravings come when your body begins to get tired and usually wants something sugary. Because your body wants it, it messes with you brain and makes you think that it's ok to eat it, instead an hour or two before you usually get the cravings, eat some nuts which take cravings away