Fixed the trigger event which is called twice