mouse loop fixed