Fix reading past memory field