Error deleting an event

I got error when deleting an event and the lightbox get’s hang. please chec my code:

even i use the built-in delete button.

scheduler.config.buttons_right = ["dhx_custom_btn_delete"];
scheduler.locale.labels["dhx_custom_btn_delete"] = "Delete";
scheduler.attachEvent("onLightboxButton", function(button_id, node, e){
      var event_id = scheduler.getState().lightbox_id;
      scheduler.deleteEvent(event_id, true);
});

error message from console:
TypeError: ev is undefined
if(ev.rec_type){

//line 546 from dhtmlxscheduler_recurring.js

Hi, I am facing the same Issue. Have you figured out the solution for the same.