Sorry:

Line:
and p.bp_size != 0) n, x_$bh b

should be:
and p.bp_size != 0) n, x$bh b

Removed underscore between x and $