Fix an issue with ruby 1.8