Either break the habit and simply don't eat, or factor this mid-night meal into your 'daily' meal plan. i.e. if you eat 7 meals/day, make this one of them, count it towards your day.