fix bug in function name in some line number nodes

ref #4716