Script help - layers

I’m not sure, maybe it’s because the overlay is created with the background? Try this instead: