fix incomplete block

Previous code did not ensure that the block is 4 bytes