Fixed minor issue with Reference_Lookup() returning corrupt