Fixed deletion error