fixed bugs with removing rdrag,rdrag2 writing