fixed commandQueue bug with not checking for non-zero size.