Removed bug

subprocess repeating uneccesarily.