fixed error in layout sections placement computation causing a recursive loop