fixed bug in loading sample directories