fixed ruby warnings