action type hit to insert instead of update on event update

I was inserting new event in DHTMLX scheduler but on the same time when I update newly created event the action type hit DataActionTypes.Insert instead DataActionTypes.Update.
This tend to create new event instead of updating previous one.
So what is wrong there?