Fix typo of method name in error message.