Fixed wrong selection issue if oldpwd==cwd