Fix folder scanning