fix the bug that can not add files with the same name