issues with empty body texts?
still errors with empty ranges and index out of range