Fixed some bugs related to the starting of external processes.