Fixed double deleteAll method