layering fix