[repo] fixed file/dir 'select' bug