Ref pointing corrected, + debug render