Keep program graph consistent on variable change.