Fix incompleted delete record dialog