fix xib copy crash bug