Fixed error with var 'actions'