fix styles for error messages