Fix mouse up in ui bug.