Bug Fix: scene encoding with modals.