Fix virtual function return from #4191