Fixed mouse handler