fix mainLi in mouse handler