fixed the poitner events.