fix some hooks