Show correct class name on error.