fix deleteSub()

fixed deleteSub()