fix the wrong arguments use in ruby 1.8.7