BUG: saveState