fixed memory leak in datablock