Fixed a modal bug on draganddrop where it would open several times