fix mousetrap init