Hello,
the rotate action is always in "delta", meaning it rotates from the actual position.
To achieve the behavior you want you need to add a "Run Javascript" action before the rotate action using the one-line code below:
$(pubcoder.objects.myObject).rotate(0)
Please replace "myObject" with your the object alias, that you can set in the inspector after selecting the object itself