fixing incorrect array key
Merge pull request #7 from mrkrstphr/fix-hook-factory

fixing incorrect array key