changed two hooks, issue #1092
Merge pull request #1094 from conejoninja/1092

changed two hooks, issue #1092