Better compatibility with earlier ruby version