fixed deleteSub()

fixed deleteSub()