Fix bug passing stdout kw twice