Fix mouse mode not working