Fix broken saved state reading.