Fixed an off by one loop bug and a get data c-string bug