Fix mouse bug on low fps