Fixed object dragging crash bug in editor