Try to make it compliant with ruby 1.9.3