Now you have to make a choice. Adjust the gun in some way, grip addition, different or modded trigger, to make it so you hold and squeeze 'properly', or change the way your shoot it, or adjust the sight so the gun shoots well 'for you'. Kind of depends on what you are doing with it. Self defense? You want it to shoot where you grab it, aim and shoot naturally and easily without thinking about it.
You might consider having someone else shoot it to see if they get the same results, but you will probably find it is actually you. Whether it is grip hold, 'finger on the trigger' placement, whatever.
I had a number of Glocks and have '0' now. There are other brands that seemed more 'natural' in my hands.