Fix mouseUpEvent fired sometimes twice