Fix problem with delete Object