Fix bug when restoring scenes with a labelmap.