Makes it working in Ruby < 1.9 (hack)