Fixes parse errors in ruby 2