Fixed subprocess calling