Fix "Fatal error: Class TargetInvocationException not found"