fixed: create item under the dir when the dir is empty