Layer ordering fix. Layer removal fix for EE refined layers. Breaks layer ordering.