Fixing some ruby warnings

This patch fixes two trivial ruby warnings.