fixed delete record