fix invalid reference