Fixes issue when marking as destroy