bugfix when upload folder