fix crash while injecting property that implements a protocol