Fixed warning when running with ruby -w