fixed some ruby warnings

Fixed some ruby warnings