Reed solomon bug fix