fixed rag and drop bug