weird bug in ray packet mode