Fixed issue where unexpected states were being saved by app cells.