fixed applying hooks to issues