fix xdk event listeners.