fixed bug in removeAllActions method