fix bug with drag and drop selection