fixed issue where only one folder was tested