Plane banks left on descent

Sorry, i shouldn’t of mentioned the avionics bug i was just giving some backstory. The bug is that on ILS descent the plane doesn’t follow the path and banks left until it crashes, theres nothing wrong with the avionics in this case. I’m just asking if it’s a bug or me doing something wrong.