Fixed SEGFAULT caused by non default patch destructor