block folding fix