Fix mouse handlers