patch do replica bug