fix pointer events