Correction of drag and drop in array