fix layer issue