reference resolving fix