fix error in travis with Ruby 1.8