Fix mouse release bug