bug fixed that lead to deletion off all objects.