Repaired the Location problem