Fixed layer selection that I broke.