Fixed warning messages got with ruby -w.