Fix ruby warnings.