Fixing a potential dependency issue in the ruby class.