Fixing DragBlock() function