Fix bug of editing and removing memo cells together