Fix some error in ri20min.rb, thanks David