Fix problem with delete