fixed error where layout was biting on only 1 segment