bitmatrix-bugs fixed