weak is safer than unsafe_unretained

This fixes a crash when parent elements are deallocated before a child.