resolve delete bug