Fixed memory updating