[server] Fix SharedRepo bug.