[IO] revert the problem which optimization in last commit caused different results