fix bug with the preindexing workflow