Fix old ruby support

address issue #3