fixed issue where elements would be constructed wrong if layer differences of one element where larger than 1