Fix error message in function widget