Fixed mem_ptr issue which caused consecutive updates to fail