unbreak layer switching