Update entityreference patch.