Add assert for rebuild state.