correct active/inactive states