Minor fix to mouseup event