change memory bug