set vars NULL after delete