Fix bug in exception message report