fix the display of mouse coordinates