Fix off by one errors when parsing status