diff --git a/stcheck.py b/stcheck.py
index 9661f74aed0daf5669ea51469814ccb508e355ff_c3RjaGVjay5weQ==..7f40b201b020d9e294ea744669de2391b5f88ee1_c3RjaGVjay5weQ== 100644
--- a/stcheck.py
+++ b/stcheck.py
@@ -428,7 +428,6 @@
         #assert not node.annotated
         node.accept(self)
         node.annotated = True
-
     def _visit_stmt(self, node):
         for var in node.defined_vars.itervalues():
             var.prepare_annotation()
@@ -513,5 +512,6 @@
                     pass
                 if stinfo['uidrel'] is rel:
                     newvar.stinfo['uidrel'] = rel
+                    stinfo['uidrel'] = None
                 if stinfo['typerel'] is rel:
                     newvar.stinfo['typerel'] = rel
@@ -516,5 +516,6 @@
                 if stinfo['typerel'] is rel:
                     newvar.stinfo['typerel'] = rel
+                    stinfo['typerel'] = None
         # shared references
         newvar.stinfo['constnode'] = var.stinfo['constnode']
         if newvar.stmt.solutions: # solutions already computed