Fix invalid constant ref