fix bug BuildAssembly throw exception