fix: highest layer was never chosen