Fix inverted layer

Extended window screw up the inverted layer. Now works nice