Fix possible error with function field