avoid crash for invalid EndLocs of fields