Corrected function name in error message (#4)