Fix invalid reference