fixed the off by one issue that was causing characters t odisappear