Fixed an error message bug.