fixed a block-drawing bug