Compatibility to ruby 2.1