fix bug that meant certain address would fail to be parsed with an index out of bounds