bpmax algebra bugfix for nested example