Fix #1: Compatible with ruby 2.0