Add fullscreen rendering for state replacement
Fix a crash with invalid iterators