fix when IO::Scalar is OUTPUT argument