fix styles of error messages