[repo] fixed bug for read-only library