Fix NoMethodError on reference resolution