Macro not replaying the way it was recorded

Hello,

I have recorded a macro which when I replay it does not seem to create one feature as it was created originally.  I used an axis to create holes on a surface, in turn with a linear pattern down the surface and in turn a circular pattern to copy the pattern of holes around the curved surface.  When I replay this macro, the holes appear off-centre (off the axis line) and when I look into the feature tree I can see the axis has moved from where I had picked it to be when recording the macro.  Anybody any ideas whats going on? tried alot and nothing seems to work.  thanks

SolidworksApi macros