Fix some ruby warnings