Fix overlaying content with infection

should fix #6 

may possibly introduce some UI bugs with apps that needs to have some layers at first index