Fixed the PM layer layering.