removes the background dragging problem