Fix event triggering previous event and also added try catch and error which is happening during node drag.