fixing up error message display