Fixed mouse event error bug