Fix some Ruby warnings