fix SPI hierarchy
flush index stamps before fileTypeChanged event to avoid accessing stale information