fix ruby 1.8.7 compatibility
0.9.1