Fixed a bug with `sys.out`.