Hi Corina,
I won't be able to able to help with any problems in the script itself, but if you are only seeing these problems after upgrading the software I would recommend you try the following:
Delete all the files in the following folder:
C:/Program Files (x86)/XPressionStudio/cache/scripts
This will clear the script cache created by XPression and make it recompile your scripts the next time you open XPression. There is a possibility that a change in the API in the new software update is interfering with the operation of your scrips created in an older version of the software API.
On a side note, all (most?) of the API is backwards compatible, so you don't have to worry about altering your script to meet any changes in the API between versions.
Give that a try and let us know if it works. I'd also recommend posting your script here so the script savvy individuals here can take a look at it and suggest any changes.
#XPression