fixed the problem with multiple folders.