Bug fix.  Created replica incorrectly