fix code after delete zero