fix warnings
Fixed Ruby warnings.