mouse/scheme: fix bugs