Array with removed elements from layer was empty
Events on viewports.js