small fix for drag and drop behaviour