Avoiding 'pc is undefined' failures