Try
var boxgroup=2;
ACTION boxes
{
//other stuff
phent_setgroup (my, boxgroup;
boxgroup+=1;
//other stuff
}
This could help because objects of one and the same group showed up collision problems with my code once. Also I guess your boxes need to be put at least at some distance. And I remember that there aren't any problems of this type with the NEWTON ph-engine.