fixed issue resolving lazy references