Unregister drag events before registering them