fix mouse up behavior