Fix a typo calling stdout.write