Fixed some bugs in blockReplicas call