Changing empty reference to clear