Fixed the frozen and obsolete states not being reset properly.