add to_i to avoid strange failure on Win 7 x64 ruby