Fixed ticket drag and drop.
Code cleanup.