Prevented infinite recursion in load_ref
Proof of concept working