added fix for folder scanning