fixed dragging to dock after program is opened