fix wrong using subprocess