Fixed ruby warnings