Fix dragging blocks issue