Little fix for non-working references