fix mouse down logic