fixed error destructor aplication