Fix select2 bugs in loading images and fix common bug when clicking to delete a discipline