fix missing dealloc