delete record added but bugs