fix incorrect rooting of a binding type and a missing write barrier