mouseup event fix