Fix task size for end block.