Since bricks_in_volume is a list, it can't be compared to a int. (cherry picked from commit 06651d1055)
06651d1055