ensure pseudo layers are cleared properly