fixed two bugs: drag and drop didn't work, re-ordering sometimes didn't work