Fixes session regeneration to set started-flag.