Fix delete thank De Ryo
fix error logic