Don't use obsolete fields variable in record view callback