Fix item drop event handling to be compatible with the current version