Fixed the error message display.