bugfix for error logging for files with no ref models