pre_hook fix