Fix copy pasting on mouse up