Fix the filled block detection