I forgot to set the memory value back to the variable