fixed missing cmd var