Minor fixes to function call error messages