Followup on #316: hook was returning an array when an int was required