fix get event pointer from pointer