Fix mouse bug