Warnings

Here are fixes for ruby :warning:s.