fix error on Ruby2.0
-check SOI