Prevented some out-of-bounds reading and writing of data