Photoshop applescript is changing the value of my styles

I have a Photoshop 7 script that applys a saved style, in this case applying a drop shadow style with the values of 50%, 10 distance, 0 Spread, 25 Size. In most cases, the script will permanetly change the saved values in the style, usually only the distance and the size, to semmingly random values.

It does this if I apply the style with applescript directly or via an action.

Has anyone else had this problem?