Artificial horizon flips during VTOL transition

Hi

I develop a VTOL Plane with two motors. When I change to another flight mode and the motors change from vertical to horitontal my artificial horizon in mission planner flips and apparently my Matek F765 Wing thinks I’m flying downwards. Can anybody help me? The orientation is set to zero as described in the matek documentation.