fix pushing layers

Authored by mart on Oct 9 2018, 5:45 PM.