stop deleting objects then immediately trying to use them