Fix the block size limit detection logic.

Before, it was functioning incorrectly.