fixes a bug with each directly within another live section