Fixed a bug with selecting rows for drag and drop