fixed uploading only to base folder bug