fix out of bounds access. CID 1231069