fixed some bugs in AppDomain.AssemblyResolve