Revert "Fixed ruby 1.8.7 bug"

This reverts commit d5fd04f4b2f6c1e879bf12dec62540567bec6463.
Fixed ruby 1.8.7 bug