Fixed errors in the trigger action.