[MOUSE] Fixed wait routine