Do project detection after setting sample