update delete bug