Fix reference to the correct function name in exception handling.