When database is in standby mode after a restore, sys.database_files (and sys.sysfiles) does not match sys.master_files. Database files contains the file names from the database being restored. Master_files has the right names.