fixed out of bounds exception in send request