Fixed mouse pointer behaviour