Fixed undefined action variable.