Attribute self for prefill-hook

As discussed in #607. Thanks in advance.