I was able to solve this, it seems that one has to set collision flag again with "pXent_setcollisionflag()" function and then event function starts to work again