Fix PTR resolving in lua resolver.