atempt to fix pure virtual call in Mat::deallocate