fix empty reference