fix folder scanning error