patch entityreference to get a better autocomplete