This commit prevents stateful functions like rowNumberInAllBlocks from being modified in getHeader() calls.