Fixed problem with stdouts != None