Code cleanup: fixed ruby 2.0 warning