fix errors around ruby