update memory out of bounds error