fix "undefined method" error when gem used on Github