Fix mouse mode