fixed bug in live brick count