fix to when the analysis thread is started