bugfix of delete record event