Avoid ref.

@araq, what do you think?