Fixed ruby issues.