Fixing the use of position in the error messages of function calls