solve delete bug