Fixed pointer events bug.