fix bug if ref is not sync
Merge branch 'master' of https://github.com/ioboi/rankcache