Fixing Replica loc