Fixed accidental modification of one hook API that was fine as it was.