Fix possible error if charBlocks < 0.