fix initialised state for sorter