Energy usage is not correct when battery return

On the energy dashboard it assumes all power out of the battery is used for consumed by the home

This however can be incorrect
I have a contract that allows my battery to return to the grid when profitable

Would it be possible for a fix for this or is there something i can do