Fix some long running ruby warnings.

Fix some long running ruby warnings.