Fixed blocking object split

wrapped the flag variables in lambda to force reevaluation on each loop.