Energy production issue

I have the following issue. As seen in the picture below I start the day of by having a massive gap in solar production (4.2KWh) in this example. This leads to the total daily solar production being 4.2 KWh short…

The problem lies somewhere in the entities that make up the total production. When the solar panels become active in the morning their daily production goes from the amount of the previous day to 0 (as it should). Is there a way to fix this issue?