I used to think that you shouldn't eat carbs right before bed, too. But now I'm not so sure about that anymore.
Look for example guys that are doing IF - they eat their biggest meal right before they go to bad and they are losing fat on it, go figure.
So now I'm pretty sure it doesn't really matter when you eat whatever and in how many meals you eat it. In the end, it all just gets down to how much calories you ingested vs. how much calories you burned and that's the whole magic to it.