G3X autopilot

AP of a G3x system: in HDG or NAV mode, the AP gives a roll command to the right after the roll trim has gone all the way to the left! What could be the cause and its remedy?