Fix issue for 1.8 ruby versions