Fixed deletion exception