Fixed bug due to different ppEvent functions