try to fix NullPointerException while dragging #8