Fixed for use ruby 1.8.