IO::flush() fixed.