Fix NPE in drag sort controller and update compatibility library