Debug reference before assignment