Fixes bug with core error file.