hello
just replace in your code G02 with G03 and vice-versa if it works, don't bother yourself ...
...or
put the drawing here, and i will give you code that should work for your required operation // sometimes is easier to restart rather than look for mistakes ...
kindly !