fix layergoup switch