Fixed bug in ResolveAtLocation.