Fixed error messages file bug.