ESS is not charging batteries in "Optimized"/"Keep batteries charged" mode

Hi,

I have an on-grid system with Victron EM24 3-phase energy meter and the PV excess power is sent to the grid instead of charging the batteries.