Fix layers.