http - fixed runtime index out of range